package com.netease.a.b;

import java.io.OutputStream;
import org.apache.http.util.EncodingUtils;

public class g extends d
{
  public static final String q = "text/plain";
  public static final String r = "US-ASCII";
  public static final String s = "8bit";
  private byte[] t;
  private String u;

  public g(String paramString1, String paramString2)
  {
    this(paramString1, paramString2, null);
  }

  public g(String paramString1, String paramString2, String paramString3)
  {
    super(paramString1, "text/plain", paramString3, "8bit");
    if (paramString2 == null)
      throw new IllegalArgumentException("Value may not be null");
    if (paramString2.indexOf(0) != -1)
      throw new IllegalArgumentException("NULs may not be present in string parts");
    this.u = paramString2;
  }

  private byte[] j()
  {
    if (this.t == null)
      this.t = EncodingUtils.getBytes(this.u, d());
    return this.t;
  }

  public void a(String paramString)
  {
    super.a(paramString);
    this.t = null;
  }

  protected void f(OutputStream paramOutputStream)
  {
    paramOutputStream.write(j());
  }

  protected long h()
  {
    return j().length;
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.a.b.g
 * JD-Core Version:    0.6.0
 */